package com.jxc.jxc01.yk.service;



import com.jxc.jxc01.yk.dao.IOutWarehouseDao;
import com.jxc.jxc01.yk.dao.OutWarehouseDaoImpl;
import com.jxc.jxc01.yk.entity.OutWarehouse;
import com.jxc.jxc01.yk.entity.PageHelper;

import java.util.List;

/**
 * 出库
 */
public class OutWarehouseService implements IOutWarehouseService {
    IOutWarehouseDao iOutWarehouseDao = new OutWarehouseDaoImpl();
    /**增加出库清单*/
    public boolean addOutWarehouse(List<OutWarehouse> outWarehouses){
        return iOutWarehouseDao.addOutWarehouse(outWarehouses);
    }
    /**查询出库清单*/
    public List<OutWarehouse> findOutWarehouseList(PageHelper<OutWarehouse> pageHelper){
        return iOutWarehouseDao.findOutWarehouseList(pageHelper);
    }

    /**根据出库单号查找某一条记录*/
    public List<OutWarehouse> findOutWarehouseNumber(int outwarehouse_num){
        return iOutWarehouseDao.findOutWarehouseNumber(outwarehouse_num);
    }

    /**根据出库单号删除出库清单*/
    public boolean deleteOutWarehouse(int id){
        return iOutWarehouseDao.deleteOutWarehouse(id);
    }

    /**修改出库清单*/
    public boolean updateOutWarehouse(OutWarehouse outWarehouse){
        return iOutWarehouseDao.updateOutWarehouse(outWarehouse);
    }

}
